import request from '@/utils/request'

// 字典类型-列表
export function dictTypeList(query = {}) {
    return request({
        url: '/api/admin/sysDictType/list',
        method: 'get'
    })
}

// 字典类型-新增
export function dictTypeAdd(data) {
    return request({
        url: '/api/admin/sysDictType/add',
        method: 'post',
        data
    })
}


// 字典类型-编辑
export function dictTypeEdit(data) {
    return request({
        url: '/api/admin/sysDictType/update',
        method: 'put',
        data
    })
}

// 字典类型-删除
export function dictTypeDelete(dictId) {
    return request({
        url: '/api/admin/sysDictType/delete/' + dictId,
        method: 'delete'
    })
}
